home *** CD-ROM | disk | FTP | other *** search
/ CD Ware Multimedia 1995 May / cd Ware (Juegos) Epimundo.iso / DOS / TOOLS / EASYCHRT.ZIP / INSTALL.BAT < prev    next >
Encoding:
DOS Batch File  |  1989-07-04  |  7.4 KB  |  184 lines

  1. Echo Off
  2. if '%1'=='' GoTo NoDrive
  3. GoTo OKDrive
  4. rem For %%a in (A: B: C: D: E: F: G: H: I: J: K: L: M: N: O: P: Q: R: S: T: U: V: W: X: Y: Z:) do if '%1'=='%%a' goto OKDrive
  5. rem For %%a in (a: b: c: d: e: f: g: h: i: j: k: l: m: n: o: p: q: r: s: t: u: v: w: x: y: z:) do if '%1'=='%%a' goto OKDrive
  6. rem GoTo NoDrive
  7. :OKDrive
  8. If Not '%2'=='' GoTo Installz
  9. Echo ╔════════════════════════════════════════════════════╗
  10. Echo ║                     W A R N I N G                  ║
  11. Echo ║                                                    ║
  12. Echo ║  You did not specify a directory where you want    ║
  13. Echo ║  EasyChart installed. EasyChart will be installed  ║
  14. Echo ║  in the default directory on drive %1. If you      ║
  15. Echo ║  do not want this, press Ctrl-C now.               ║
  16. Echo ╚════════════════════════════════════════════════════╝
  17. Pause
  18. :Installz
  19. If Not Exist EZC.EXE GoTo NoSoft
  20. If '%2'=='' GoTo SkipMD
  21. If '%2'=='\' GoTo SkipMD
  22. Echo ╔═════════════════════════════════════════════════════════╗
  23. Echo ║  The installation procedure will now attempt to make    ║
  24. Echo ║  the directory you specified. If you receive the        ║
  25. Echo ║  message "Unable to create directory" this is ok.       ║
  26. Echo ╠═════════════════════════════════════════════════════════╣
  27. MkDir %1%2
  28. :SkipMD
  29. Set ColMon=N
  30. For %%a in (c C color Color COLOR) do if .%3==.%%a Set ColMon=Y
  31. Echo ╠═════════════════════════════════════════════════════════╣
  32. Echo ║  Creating the EasyChart System Defaults file.           ║
  33. Echo ╠═════════════════════════════════════════════════════════╣
  34. Set ED=%1%2
  35. If '%2'=='\' Set ED=%1
  36. If '%2'=='' Set ED=%1
  37. Echo TUTORIAL.CHR>%ED%\EZCDV001.EZD
  38. Echo *.CHR>>%ED%\EZCDV001.EZD
  39. Echo 40>>%ED%\EZCDV001.EZD
  40. Echo 12>>%ED%\EZCDV001.EZD
  41. Echo %ED%\>>%ED%\EZCDV001.EZD
  42. Echo #18#27#72#27#50>>%ED%\EZCDV001.EZD
  43. Echo %ColMon%>>%ED%\EZCDV001.EZD
  44. Echo #015>>%ED%\EZCDV001.EZD
  45. Echo #018>>%ED%\EZCDV001.EZD
  46. Echo #027#071>>%ED%\EZCDV001.EZD
  47. Echo #027#072>>%ED%\EZCDV001.EZD
  48. Echo N>>%ED%\EZCDV001.EZD
  49. Echo 5>>%ED%\EZCDV001.EZD
  50. Echo 66>>%ED%\EZCDV001.EZD
  51. Echo 10>>%ED%\EZCDV001.EZD
  52. Echo 5>>%ED%\EZCDV001.EZD
  53. Echo *.MRG>>%ED%\EZCDV001.EZD
  54. Echo *.MRG>>%ED%\EZCDV001.EZD
  55. Echo %ED%\>>%ED%\EZCDV001.EZD
  56. Echo 1>>%ED%\EZCDV001.EZD
  57. Echo 1>>%ED%\EZCDV001.EZD
  58. Echo 0>>%ED%\EZCDV001.EZD
  59. Echo 0>>%ED%\EZCDV001.EZD
  60. Echo Y>>%ED%\EZCDV001.EZD
  61. Echo Y>>%ED%\EZCDV001.EZD
  62. Echo #27#50>>%ED%\EZCDV001.EZD
  63. Echo #27#48>>%ED%\EZCDV001.EZD
  64. Echo N>>%ED%\EZCDV001.EZD
  65. Echo N>>%ED%\EZCDV001.EZD
  66. Echo 6>>%ED%\EZCDV001.EZD
  67. If '%ColMon%'=='Y' GoTo SetClrs
  68. Echo 15>>%ED%\EZCDV001.EZD
  69. Echo 0>>%ED%\EZCDV001.EZD
  70. Echo 0>>%ED%\EZCDV001.EZD
  71. Echo 7>>%ED%\EZCDV001.EZD
  72. Echo 0>>%ED%\EZCDV001.EZD
  73. Echo 7>>%ED%\EZCDV001.EZD
  74. Echo 0>>%ED%\EZCDV001.EZD
  75. Echo 7>>%ED%\EZCDV001.EZD
  76. Echo 0>>%ED%\EZCDV001.EZD
  77. Echo 7>>%ED%\EZCDV001.EZD
  78. Echo 0>>%ED%\EZCDV001.EZD
  79. Echo 0>>%ED%\EZCDV001.EZD
  80. Echo 7>>%ED%\EZCDV001.EZD
  81. GoTo EndClrs
  82. :SetClrs
  83. Echo 14>>%ED%\EZCDV001.EZD
  84. Echo 0>>%ED%\EZCDV001.EZD
  85. Echo 15>>%ED%\EZCDV001.EZD
  86. Echo 2>>%ED%\EZCDV001.EZD
  87. Echo 15>>%ED%\EZCDV001.EZD
  88. Echo 3>>%ED%\EZCDV001.EZD
  89. Echo 15>>%ED%\EZCDV001.EZD
  90. Echo 4>>%ED%\EZCDV001.EZD
  91. Echo 15>>%ED%\EZCDV001.EZD
  92. Echo 6>>%ED%\EZCDV001.EZD
  93. Echo 13>>%ED%\EZCDV001.EZD
  94. Echo 15>>%ED%\EZCDV001.EZD
  95. Echo 1>>%ED%\EZCDV001.EZD
  96. :EndClrs
  97. Echo  1 File Name        String>>%ED%\EZCDV001.EZD
  98. Echo  2 File Mask        String>>%ED%\EZCDV001.EZD
  99. Echo  3 Tab Inc          #>>%ED%\EZCDV001.EZD
  100. Echo  4 Page Inc         #>>%ED%\EZCDV001.EZD
  101. Echo  5 File Path        #>>%ED%\EZCDV001.EZD
  102. Echo  6 Setup            String>>%ED%\EZCDV001.EZD
  103. Echo  7 Color            Y/N>>%ED%\EZCDV001.EZD
  104. Echo  8 Compressed  On   String>>%ED%\EZCDV001.EZD
  105. Echo  9 Compressed  Off  String>>%ED%\EZCDV001.EZD
  106. Echo 10 Overstrike  On   String>>%ED%\EZCDV001.EZD
  107. Echo 11 Overstike   Off  String>>%ED%\EZCDV001.EZD
  108. Echo 12 Line Numbers     Y/N>>%ED%\EZCDV001.EZD
  109. Echo 13 Left Margen      #>>%ED%\EZCDV001.EZD
  110. Echo 14 Lines per Page   #>>%ED%\EZCDV001.EZD
  111. Echo 15 Box Width        #>>%ED%\EZCDV001.EZD
  112. Echo 16 Box Heighth      #>>%ED%\EZCDV001.EZD
  113. Echo 17 Merge File       String>>%ED%\EZCDV001.EZD
  114. Echo 18 Merge Mask       String>>%ED%\EZCDV001.EZD
  115. Echo 19 Merge Path       String>>%ED%\EZCDV001.EZD
  116. Echo 20 XPosS            #>>%ED%\EZCDV001.EZD
  117. Echo 21 YPosS            #>>%ED%\EZCDV001.EZD
  118. Echo 22 XPosW            #>>%ED%\EZCDV001.EZD
  119. Echo 23 YPosW            #>>%ED%\EZCDV001.EZD
  120. Echo 24 Bell             Y/N>>%ED%\EZCDV001.EZD
  121. Echo 25 ASCII Extensions Y/N>>%ED%\EZCDV001.EZD
  122. Echo 26 6 Lines per Inch String>>%ED%\EZCDV001.EZD
  123. Echo 27 8 Lines per Inch String>>%ED%\EZCDV001.EZD
  124. Echo 28 Compressed       Y/N>>%ED%\EZCDV001.EZD
  125. Echo 29 Overstrike       Y/N>>%ED%\EZCDV001.EZD
  126. Echo 30 Lines per inch   6/8>>%ED%\EZCDV001.EZD
  127. Echo 31,32 Text Colors   #,#>>%ED%\EZCDV001.EZD
  128. Echo 33,34 Mode Colors   #,#>>%ED%\EZCDV001.EZD
  129. Echo 35,36 Info Colors   #,#>>%ED%\EZCDV001.EZD
  130. Echo 37,38 Error Colors  #,#>>%ED%\EZCDV001.EZD
  131. Echo 39,40 Query Colors  #,#>>%ED%\EZCDV001.EZD
  132. Echo 41-43 Menu Colors   #,#,#>>%ED%\EZCDV001.EZD
  133. Echo ║  Copying EasyChart and all its associated files.        ║
  134. Echo ╠═════════════════════════════════════════════════════════╣
  135. Copy *.* %ED%/v
  136. If exist A:EZC.DOC GoTo NoDisk2
  137. If exist A:EZC.COM GoTo NoDisk2
  138. If exist A:QUICKREF.DOC GoTo NoDisk2
  139. Echo Echo Off>%ED%\INSTALL1.BAT
  140. Echo Echo ║  Insert EasyChart Diskette #2, then press Enter.        ║>>%ED%\INSTALL1.BAT
  141. Echo Echo ╠═════════════════════════════════════════════════════════╣>>%ED%\INSTALL1.BAT
  142. Echo pause>>%ED%\INSTALL1.BAT
  143. Echo copy *.* %ED%\*.*/v>>%ED%\INSTALL1.BAT
  144. Echo Echo ║  If you did not receive the message "Insufficient disk  ║>>%ED%\INSTALL1.BAT
  145. Echo Echo ║  space", the EasyChart installation is complete.        ║>>%ED%\INSTALL1.BAT
  146. Echo Echo ╚═════════════════════════════════════════════════════════╝>>%ED%\INSTALL1.BAT
  147. Echo On
  148. CD %1%2
  149. %1INSTALL1.BAT
  150. GoTo Finish
  151. :NoDrive
  152. Echo ╔══════════════════════════════════════════════════╗
  153. Echo ║  No drive was specified on the INSTALL command.  ║
  154. Echo ║  The syntax for the INSTALL command is:          ║
  155. Echo ║                                                  ║
  156. Echo ║   INSTALL [drive:] [\directory] [C/M]            ║
  157. Echo ║                                                  ║
  158. Echo ║    where: [drive:] is the drive where you will   ║
  159. Echo ║                    install EasyChart.            ║
  160. Echo ║                                                  ║
  161. Echo ║       [\directory] is the directory where you    ║
  162. Echo ║                    want EasyChart installed.     ║
  163. Echo ║                                                  ║
  164. Echo ║       [C/M]        indicates the monitor type.   ║
  165. Echo ║                    C indicates a color monitor.  ║
  166. Echo ║                    M indicates a mono monitor.   ║
  167. Echo ║                                                  ║
  168. Echo ║       for example:  INSTALL C: \EZC C            ║
  169. Echo ╚══════════════════════════════════════════════════╝
  170. GoTo Finish
  171. :NoSoft
  172. Echo ╔═══════════════════════════════════════════════╗
  173. Echo ║  EZC.EXE was not found on the default drive.  ║
  174. Echo ║  Make sure the default drive is set where     ║
  175. Echo ║  your installation diskette is located.       ║
  176. Echo ╚═══════════════════════════════════════════════╝
  177. GoTo Finish
  178. :NoDisk2
  179. Echo ║  If you did not receive the message "Insufficient disk  ║
  180. Echo ║  space", the EasyChart installation is complete.        ║
  181. Echo ╚═════════════════════════════════════════════════════════╝
  182. :Finish
  183. Set ED=
  184. Set ColMon=